package example1_loginLog.service;

import example1_loginLog.dao.LoginLogDao;
import example1_loginLog.vo.LoginLog;
import example1_loginLog.vo.User;

public class LoginLogService {

    LoginLogDao logDao = new LoginLogDao();

    public User login(String username,String password){
        return logDao.selectUserByUsernameAndPassword(username, password);
    }

    public int writeLog(LoginLog log){
        return logDao.insertLog(log);
    }

}
